/**
 * HistoryFileItemService.java
 * 2008-3-13
 * @author 屈甲康
   qujiakang@gmail.com
 */
package org.jackysoft.service;

import java.io.IOException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.HistoryFileItem;
import org.jackysoft.entity.User;
import org.springframework.dao.DataAccessException;

/**
 * @author 屈甲康
 * QQ285799123
 * 
 */

public interface HistoryFileItemService extends IDataProvider<String,HistoryFileItem>{
	final static Log logger = LogFactory.getLog(HistoryFileItemService.class);	
	/**
	 * 产生一次历史文件并保存记录
	 * @param fromId 来源文件编号
	 * */
    void save(String fromId) throws DataAccessException, IOException;
    void save(byte[] fileData,String title,User owner,String originId,String fileType) throws DataAccessException;
    HistoryFileItem openHistoryDoc(String id) throws DataAccessException;
}
